document.write("<script language=javascript src='/static/admin/jsencrypt/jsencrypt.min.js'></script>");

const publicKey = '-----BEGIN PUBLIC KEY-----\n' +
    'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDfCf6d/ut0Mt0FsIfBSdRsfNw8\n' +
    'iEPomLztGlzvWn+9AzP/wGFVPZc55jbgrcKXvvRUGfpkqoN3xDyqa1qLxUJdw6rq\n' +
    'VrwOmAn+c9t+jkzbxuAU3F9XVUykv29grODn0ZDSCc2+2ocYVTSZgVFAsqZ1it61\n' +
    'ZrM7Cgzx1fWqTJqpbwIDAQAB\n' +
    '-----END PUBLIC KEY-----';
const privateKey = ''

function encrypt(txt) {
    const encryptor = new JSEncrypt()
    encryptor.setPublicKey(publicKey)
    return encryptor.encrypt(txt)
}

function decrypt(txt) {
    const encryptor = new JSEncrypt()
    encryptor.setPrivateKey(privateKey)
    return encryptor.decrypt(txt)
}

